export default{
    namespaced: true,
    state: {
        depart:{},
        token: null
    },
    getters: {
      
        getDepart: (state) => {
            return state.depart
        },
        getToken: state => state.token
    },
    mutations: {
       
        SET_DEPART: (state, c) => {
            state.depart = c
        },
        SET_TOKEN(state, token) {
            state.token = token;
          },
    },
    actions: {
        ChangeDepart({commit}, data){
            commit('SET_DEPART', data);
        },
        setToken({ commit }, token) {
            commit('SET_TOKEN', token);
          },
    }
}
